<form id="app-form" class="layui-form layuimini-form">
    <div class="layui-form-item">
        <label class="layui-form-label required">{:lang('config.upload_type')}</label>
        <div class="layui-input-block">
            {foreach ['local'=>'本地存储'] as $key=>$val}
            <input type="radio" v-model="upload_type" name="upload_type" lay-filter="upload_type" value="{$key}"
                   title="{$val}" {if $key==sysValue('upload_type')}checked=""{/if}>
            {/foreach}
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">{:lang('config.upload_allow_ext')}</label>
        <div class="layui-input-block">
            <input type="text" name="upload_allow_ext" class="layui-input" lay-verify="required"
                   placeholder="{:lang('common.input')}{:lang('config.upload_allow_ext')}"
                   value="{:sysValue('upload_allow_ext')}">
            <tip>{:lang('config.upload_allow_ext_tip')}</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">{:lang('config.upload_allow_size')}</label>
        <div class="layui-input-block">
            <input type="text" name="upload_allow_size" class="layui-input" lay-verify="required"
                   placeholder="{:lang('config.upload_allow_size_placeholder')}"
                   value="{:sysValue('upload_allow_size')}">
            <tip>{:lang('config.upload_allow_size_tip')}</tip>
        </div>
    </div>

    <div class="hr-line"></div>
    <div class="layui-form-item text-center">
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/save"
                data-refresh="false">{:lang('common.btn_confirm')}
        </button>
    </div>
</form>